<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- whatsnew52.qdoc -->
  <title>What's New in Qt 5.2 | Qt 5.14</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td ><a href="index.html">Qt 5.14</a></td><td >What's New in Qt 5.2</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.14.2 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#new-modules">New Modules</a></li>
<li class="level1"><a href="#support-for-new-platforms">Support for New Platforms</a></li>
<li class="level2"><a href="#android">Android</a></li>
<li class="level2"><a href="#ios">iOS</a></li>
<li class="level1"><a href="#qt-creator-updates">Qt Creator Updates</a></li>
<li class="level1"><a href="#installation-updates">Installation Updates</a></li>
<li class="level1"><a href="#new-features-in-qt-5-2">New Features in Qt 5.2</a></li>
<li class="level2"><a href="#qt-core-module">Qt Core Module</a></li>
<li class="level2"><a href="#qt-gui-module">Qt GUI Module</a></li>
<li class="level2"><a href="#qt-widgets-module">Qt Widgets Module</a></li>
<li class="level2"><a href="#qt-print-support-module">Qt Print Support Module</a></li>
<li class="level2"><a href="#qt-qml-module">Qt QML Module</a></li>
<li class="level2"><a href="#qt-quick-module">Qt Quick Module</a></li>
<li class="level2"><a href="#qt-quick-controls-module">Qt Quick Controls Module</a></li>
<li class="level2"><a href="#qt-quick-dialogs-module">Qt Quick Dialogs Module</a></li>
<li class="level2"><a href="#qt-quick-layouts-module">Qt Quick Layouts Module</a></li>
<li class="level2"><a href="#qt-network-module">Qt Network Module</a></li>
<li class="level2"><a href="#moc-new-features">moc New Features</a></li>
<li class="level2"><a href="#accessibility-new-features">Accessibility New Features</a></li>
<li class="level2"><a href="#webkit-new-features">WebKit New Features</a></li>
<li class="level1"><a href="#list-of-api-changes">List of API Changes</a></li>
<li class="level1"><a href="#additions-to-other-qt-5-releases">Additions to Other Qt 5 Releases</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">What's New in Qt 5.2</h1>
<span class="subtitle"></span>
<!-- $$$whatsnew52.html-description -->
<div class="descr"> <a name="details"></a>
<p>Qt 5.2 introduces many changes for helping developers continue creating wonderful applications, easily and with less code. As well in this release, focus is placed on bug fixing and new features, while maintaining compatibility with Qt 5.1 and 5.0&#x2e;</p>
<p>This page is a summary of new features. For specific API changes, the <a href="whatsnew59.html#list-of-api-changes">List of API Changes</a> section contains links to new and obsolete classes.</p>
<a name="new-modules"></a>
<h2 id="new-modules">New Modules</h2>
<ul>
<li><a href="../qtandroidextras/qtandroidextras-index.html">Qt Android Extras</a></li>
<li><a href="../qtbluetooth/qtbluetooth-index.html">Qt Bluetooth</a></li>
<li><a href="../qtmacextras/qtmacextras-index.html">Qt Mac Extras</a></li>
<li><a href="../qtnfc/qtnfc-index.html">Qt NFC</a></li>
<li><a href="../qtpositioning/qtpositioning-index.html">Qt Positioning</a></li>
<li><a href="../qtwinextras/qtwinextras-index.html">Qt Windows Extras</a></li>
</ul>
<p>For more information, visit the <a href="qtmodules.html">All Modules</a> page.</p>
<a name="support-for-new-platforms"></a>
<h2 id="support-for-new-platforms">Support for New Platforms</h2>
<a name="android"></a>
<h3 id="android">Android</h3>
<ul>
<li>Full support for camera and recording</li>
<li>Low-latency audio (<a href="../qtmultimedia/qaudioinput.html">QAudioInput</a>, <a href="../qtmultimedia/qaudiooutput.html">QAudioOutput</a>)</li>
<li>Command-line deployment tool</li>
<li>JNI convenience API</li>
<li>OpenSSL support</li>
</ul>
<p>For more information, visit the <a href="android.html">Qt for Android</a> page.</p>
<a name="ios"></a>
<h3 id="ios">iOS</h3>
<ul>
<li>Media player support</li>
<li>Basic camera support (only viewfinder and image capture)</li>
<li>Low-latency audio (<a href="../qtmultimedia/qaudioinput.html">QAudioInput</a>, <a href="../qtmultimedia/qaudiooutput.html">QAudioOutput</a>)</li>
</ul>
<p>For more information, visit the <a href="ios.html">Qt for iOS</a> page.</p>
<a name="qt-creator-updates"></a>
<h2 id="qt-creator-updates">Qt Creator Updates</h2>
<p>Qt Creator 3.0 is released along with Qt 5.2&#x2e; In Qt Creator 3.0, the following were added:</p>
<ul>
<li>Initial iOS support</li>
<li>API cleanup</li>
<li>Enhanced Android support</li>
<li>Initial debugging backend for the <a href="http://lldb.llvm.org/">LLDB Debugger</a> (OS X)</li>
</ul>
<a name="installation-updates"></a>
<h2 id="installation-updates">Installation Updates</h2>
<p>In 5.2, there are new reference installers for OS X:</p>
<ul>
<li>Android</li>
<li>iOS</li>
</ul>
<p>There is also a new target binary for Windows, OS X, and Linux:</p>
<ul>
<li>Qt for Android ARMv5</li>
</ul>
<p>The installers are available from the <a href="http://qt.io/download">Downloads</a> page.</p>
<a name="new-features-in-qt-5-2"></a>
<h2 id="new-features-in-qt-5-2">New Features in Qt 5.2</h2>
<a name="qt-core-module"></a>
<h3 id="qt-core-module">Qt Core Module</h3>
<ul>
<li>Added class <a href="../qtcore/qcommandlineparser.html">QCommandLineParser</a> for command-line arguments parsing</li>
<li>Added new overload to <a href="../qtcore/qobject.html#connect">QObject::connect</a>() to add a context object when connecting to a lambda</li>
<li>Added new <a href="../qtcore/qstringref.html">QStringRef</a> methods; left, right, mid</li>
<li>Added <a href="../qtcore/qloggingcategory.html">QLoggingCategory</a>/<a href="../qtcore/qloggingcategory.html#qCDebug">qCDebug</a>, <a href="../qtcore/qloggingcategory.html#qCWarning">qCWarning</a>, and other macros to configure what gets logged at runtime</li>
<li>Added class <a href="../qtcore/qtimezone.html">QTimeZone</a> to support time zones using Olsen time zone IDs</li>
<li>Added support to <a href="../qtcore/qdatetime.html">QDateTime</a> for new <a href="../qtcore/qt.html#TimeSpec-enum">Qt::TimeSpec</a> of <a href="../qtcore/qt.html#TimeSpec-enum">Qt::TimeZone</a> and <a href="../qtcore/qt.html#TimeSpec-enum">Qt::OffsetFromUTC</a></li>
<li>Added new class <a href="../qtcore/qcollator.html">QCollator</a> to provide advanced platform-based collation</li>
<li>Added more I/O redirection possibilities to <a href="../qtcore/qprocess.html">QProcess</a></li>
<li>Added iteration capability to containers in <a href="../qtcore/qvariant.html">QVariant</a></li>
<li>Added dereferencing to <a href="../qtcore/qobject.html">QObject</a> for smart pointers in <a href="../qtcore/qvariant.html">QVariant</a></li>
<li>Added <a href="../qtcore/qfileselector.html">QFileSelector</a> to ease the selection of files when running in a different platform</li>
</ul>
<a name="qt-gui-module"></a>
<h3 id="qt-gui-module">Qt GUI Module</h3>
<ul>
<li>Added applicationState() function and applicationStateChanged() signal to <a href="../qtgui/qguiapplication.html">QGuiApplication</a></li>
<li>Added <a href="../qtgui/qopengltexture.html">QOpenGLTexture</a> class</li>
</ul>
<a name="qt-widgets-module"></a>
<h3 id="qt-widgets-module">Qt Widgets Module</h3>
<ul>
<li>Added support for embedded clear button commonly used for item view filtering and side actions to <a href="../qtwidgets/qlineedit.html">QLineEdit</a></li>
<li>Added methods based on <a href="../qtcore/qurl.html">QUrl</a> to <a href="../qtwidgets/qfiledialog.html">QFileDialog</a></li>
<li>Added new <a href="../qtwidgets/qkeysequenceedit.html">QKeySequenceEdit</a> class</li>
<li>Restored session-management support from Qt4</li>
<li>Restored basic startup-notification support on Unix</li>
<li>Added placeholderText property to <a href="../qtwidgets/qtextedit.html">QTextEdit</a></li>
<li>Added getMultiLineText static method to <a href="../qtwidgets/qinputdialog.html">QInputDialog</a></li>
<li>Added tabBarClicked and tabBarDoubleClicked signals to <a href="../qtwidgets/qtabbar.html">QTabBar</a></li>
</ul>
<a name="qt-print-support-module"></a>
<h3 id="qt-print-support-module">Qt Print Support Module</h3>
<ul>
<li>Added advanced CUPS features on Linux including server-side page range selection, odd and even page selection, pages-per-sheet, job scheduling, and banner pages.</li>
</ul>
<a name="qt-qml-module"></a>
<h3 id="qt-qml-module">Qt QML Module</h3>
<ul>
<li>Added new property to <a href="../qtqml/qml-qtqml-qt.html#application-prop">Qt.application</a>: state</li>
<li>Added ability to define QML singletons with QML files</li>
<li>Added <a href="../qtqml/qqmlfileselector.html">QQmlFileSelector</a> for applying file selectors to support certain styles of cross-platform development</li>
<li>Added a supported method for launching QML-only applications for the QML binary runtimes</li>
<li>New V4 JS engine</li>
</ul>
<a name="qt-quick-module"></a>
<h3 id="qt-quick-module">Qt Quick Module</h3>
<ul>
<li>Added a new <a href="topics-graphics.html#qt-quick-scene-graph">scenegraph</a> renderer for improved performance</li>
<li>Added texture atlas support in SceneGraph</li>
<li>Added new <i>animator</i> types, which can run animations on the scene graph's render thread.</li>
<li>Support for external drag-and-drop</li>
</ul>
<a name="qt-quick-controls-module"></a>
<h3 id="qt-quick-controls-module">Qt Quick Controls Module</h3>
<ul>
<li>Added support for an editable combo box</li>
<li>Added support for multi-selection in <a href="../qtquickcontrols1/qml-qtquick-controls-tableview.html">TableView</a></li>
<li>Added support for setting columns movable in <a href="../qtquickcontrols1/qml-qtquick-controls-tableview.html">TableView</a></li>
<li>Added <a href="../qtquickcontrols1/qml-qtquick-controls-switch.html">Switch</a> type</li>
<li>Added <a href="../qtquickcontrols1/qml-qtquick-controls-busyindicator.html">BusyIndicator</a> type</li>
<li>Simplified deployment</li>
</ul>
<a name="qt-quick-dialogs-module"></a>
<h3 id="qt-quick-dialogs-module">Qt Quick Dialogs Module</h3>
<ul>
<li>Added a new <a href="../qtlabsplatform/qml-qt-labs-platform-fontdialog.html">FontDialog</a> type</li>
</ul>
<a name="qt-quick-layouts-module"></a>
<h3 id="qt-quick-layouts-module">Qt Quick Layouts Module</h3>
<ul>
<li>Added baseline support to layout</li>
</ul>
<a name="qt-network-module"></a>
<h3 id="qt-network-module">Qt Network Module</h3>
<ul>
<li>Added public methods to pre-TCP and pre-SSL-connect to <a href="../qtnetwork/qnetworkaccessmanager.html">QNetworkAccessManager</a></li>
<li>Added API to persist and resume SSL sessions to <a href="../qtnetwork/qsslconfiguration.html">QSslConfiguration</a></li>
<li>Added support for allowing for debugging SSL traffic with Wireshark or tcpdump</li>
<li>Add public member bearerTypeFamily() to <a href="../qtnetwork/qnetworkconfiguration.html">QNetworkConfiguration</a></li>
</ul>
<a name="moc-new-features"></a>
<h3 id="moc-new-features">moc New Features</h3>
<ul>
<li>Added <code>-M</code> argument to add plugin metadata from the command line</li>
</ul>
<a name="accessibility-new-features"></a>
<h3 id="accessibility-new-features">Accessibility New Features</h3>
<ul>
<li>Enabled accessibility on Mac</li>
<li>Made the APIs public so that it is possible to implement accessibility for custom widgets</li>
<li>Basic accessibility support for Android</li>
</ul>
<a name="webkit-new-features"></a>
<h3 id="webkit-new-features">WebKit New Features</h3>
<ul>
<li>Added CSS blending</li>
<li>Improved the threaded garbage collection</li>
<li>Added support for LLInt on x87 (old x86 without SSE2)</li>
<li>Added Improvements to standard support in HTML5 Canvas, CSS Grid, CSS Shapes, CSS filters, and other features</li>
</ul>
<a name="list-of-api-changes"></a>
<h2 id="list-of-api-changes">List of API Changes</h2>
<p>The pages below contain a list of API changes in Qt 5.2</p>
<ul>
<li><a href="newclasses52.html">New Classes and Functions in Qt 5.2</a></li>
<li><a href="obsoleteclasses.html">Obsolete Classes</a></li>
</ul>
<a name="additions-to-other-qt-5-releases"></a>
<h2 id="additions-to-other-qt-5-releases">Additions to Other Qt 5 Releases</h2>
<ul>
<li><a href="whatsnew54.html">What's New in Qt 5.4</a></li>
<li><a href="whatsnew53.html">What's New in Qt 5.3</a></li>
<li><a href="whatsnew51.html">What's New in Qt 5.1</a></li>
<li><a href="whatsnew50.html">What's New in Qt 5.0</a></li>
</ul>
</div>
<!-- @@@whatsnew52.html -->
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2020 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>
